package com.itheima._02自定义异常;

/**
 * 目标：自定义编译时异常
 * @Author songyu
 * @Date 2025-07-19  9:21
 */
//1.定类继承Exception
public class AgeIllegalException extends Exception {

    //2.定义构造器调用父类构造器
    public AgeIllegalException(){}
    public AgeIllegalException(String errorMsg){
        super(errorMsg);
    }
    public AgeIllegalException(String errorMsg,Throwable throwable){
        super(errorMsg,throwable);
    }
    public AgeIllegalException(Throwable throwable){
        super(throwable);
    }
}